home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000032_news@newsmaster….columbia.edu _Tue May 5 00:31:37 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA09855
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 5 May 1998 00:31:36 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA26468
  7.     for kermit.misc@watsun; Tue, 5 May 1998 00:31:36 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Error Handling
  12. Date: 5 May 1998 04:31:32 GMT
  13. Organization: Columbia University
  14. Lines: 34
  15. Message-ID: <6im4n4$s21$1@apakabar.cc.columbia.edu>
  16. References: <6im161$mqo@bgtnsc03.worldnet.att.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8684
  19.  
  20. In article <6im161$mqo@bgtnsc03.worldnet.att.net>,
  21. Bernie  <bfb@worldnet.att.net> wrote:
  22. : Listed below is a code fragment which I hoped would
  23. : handle modem errors.  However, when I turn the modem off,
  24. : it locks up.  Is there a method I can use to handle errors, even if
  25. : the modem were powered off?
  26. : set count 3
  27. : :LOOP
  28. : pause
  29. : output AT\13
  30. : input 3 OK
  31. : if success goto ok
  32. : if count goto loop
  33. : Stop 1 Can't communicate with modem at \m(max_speed)
  34. : :OK ; Initialize the modem.
  35.  
  36. This doesn't work when the modem is off because you probably 
  37. have some form of flow control active.  If the flow control 
  38. is hardware (RTS/CTS) then the OUTPUT will block until the
  39. Clear To Send signal is high.
  40.  
  41. SET FLOW NONE before the OUTPUT and you shoudl be fine. Just 
  42. remember to set it back to the real flow control when you are done.
  43.  
  44.  
  45.  
  46.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  47.                  The Kermit Project * Columbia University
  48.               612 West 115th St #716 * New York, NY * 10025
  49.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org